import StaticData from './StaticData.js'
import MemberData from './MemberData.js'
import userData from './userData.js'
import WorkData from './WorkData'
import NewvisitData from './NewvisitData.js'
import LoginData from './LoginData.js'
import Mock from 'mockjs'
import DrugDatil from './DrugDatil'

// 统计报表部分的接口

Mock.mock(/\/getStaticData/,"get",StaticData.getStaticData);

//会员管理的接口
Mock.mock(/\/getMemberData/,"get",MemberData.getMemberData);
Mock.mock(/\/addmember/,"post",MemberData.addMemberData);

Mock.mock(/\/editData/,"post",MemberData.editMemberData);




Mock.mock(/\user/, "get", userData.getUserdata);

// 工作台的接口
Mock.mock(/\getWorkData/, "get", WorkData.getWorkData);


//新开就诊列表获取数据接口
Mock.mock(/\getNewvisitData/, "get", NewvisitData.getNewvisitData);
//新开就诊表格获取数据接口
Mock.mock(/\getMytableData/, "get", NewvisitData.getMytableData);
Mock.mock(/\adddata/, "post", NewvisitData.addData);

Mock.mock(/\editStaticData/, "post", StaticData.editStaticData);


Mock.mock(/\loginrequest/, "get", LoginData.Login);


Mock.mock(/\isexistname/, "get", LoginData.IsExistUserName);
// Mock.mock(/\getuserbytoken/, "get", LoginData.GetUserDataByToken);
Mock.mock(/\getlogindatabytoken/, "get", LoginData.GetUserDataByToken);


// 注册接口
Mock.mock(/\adduserdata/, "post", LoginData.addUserData);

// 修改密码接口
Mock.mock(/\setpwddata/, "post", LoginData.setPwdData);


//药品零售页面

Mock.mock(/\/DrugDatilData/,"get",DrugDatil.DrugData)
Mock.mock(/\/deleteDrug/,'post',DrugDatil.deleteDrug)
Mock.mock(/\/addDrug/,'post',DrugDatil.addDrug)
Mock.mock(/\/DrugListData/,"get",DrugDatil.ListDrug)

